package com.dongdongshop.enums;

public enum ResultEnum {
    OK(10000,"操作成功"),
    ER(99999,"操作失败"),
    NOT_FOUND_ACCOUNT(20001,"账号找不到"),
    ER_PASSWORD(20002,"密码错误"),
    NOT_PERMS(20003,"没有权限"),
    ACCOUNT_ALREADY_EXISTS(20004,"账号已存在"),
    VERIFICATION_CODE_ERROR(20005,"验证码错误"),
    ACCOUNT_NOT_LOGIN(20006,"账号未登录"),
    NOT_FOUND_lIST(88888,"节点下没数据"),
    SALE_OVER(66665,"商品已卖光"),
    ACCOUNT_EXCEPTION(20007,"账号异常");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
